using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using Shpm.System.Db;
using Shpm.App.Commons.Db.Beans.Master;
using Shpm.App.Commons.Db.Beans.Inp;
using Shpm.App.Input.Bean;
using Shpm.App.Master.Bean;

/// <summary>
/// Summary description for SaleFinishDao
/// </summary>
namespace Shpm.App.Input.Dao
{
    public class SaleFinishDao : ShpmBaseDao
    {
        public const string FIND_BY_GROUP = "SaleFinish.GetGroupList";

        public const string GET_EMPLOYEE = "SaleFinish.GetEmployee";

        public const string INS_CHECK_IN_TASK = "SaleFinish.InsCheckInTask";

        public const string FIND_BY_CHECK_IN_TASK = "SaleFinish.FindByCheckInTask";

        public SaleFinishDao()
        {

        }

        public IList GetGroupList()
        {
            return base.QueryForList(FIND_BY_GROUP, new MstGroupBean());
        }

        public MstEmployeeBean Load(MstEmployeeBean paramBean)
        {
            return (MstEmployeeBean)base.QueryForObject(GET_EMPLOYEE, paramBean);
        }

        public InpCheckInTaskBean Insert(InpCheckInTaskBean paramBean)
        {
            int checkInId = (int)base.Insert(INS_CHECK_IN_TASK, paramBean);
            paramBean.CheckInId = checkInId;
            return paramBean;
        }

        public IList FindByCheckInTask(InpCheckInTaskBean paramBean)
        {
            return base.QueryForList(FIND_BY_CHECK_IN_TASK, paramBean);
        }
    }
}